GtkDialog: Fix up docs
authorMatthias Clasen <mclasen@redhat.com>
Sun, 26 Apr 2015 15:54:02 +0000 (11:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 26 Apr 2015 19:03:48 +0000 (15:03 -0400)
The ui fragment in the example was causing a critical
warning, which is not nice. Fix it to work properly.

gtk/gtkdialog.c

index b02c6048c1caaf37b6a3d9c75e9111f2645df5fc..21e900494420b2ffc96dc0866ebf28510c5344ca 100644 (file)
  *     <object class="GtkButton" id="button_cancel"/>
  *   </child>
  *   <child type="action">
- *     <object class="GtkButton" id="button_ok"/>
+ *     <object class="GtkButton" id="button_ok">
+ *       <property name="can-default">True</property>
+ *     </object>
  *   </child>
  *   <action-widgets>
  *     <action-widget response="cancel">button_cancel</action-widget>